﻿using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {

            锅 guo = new 锅();//调用锅
            string PZ = guo.凉拌();
            Console.WriteLine(PZ);
            Console.ReadKey();
        }
    }

    



  public class 锅
{
    public string 凉拌()
    {
        鸡蛋类 jd = new 鸡蛋类();
        西红柿类 xhs = new 西红柿类();

        string JD = jd.鸡蛋();//定义JD，把鸡蛋赋值给JD
        string XHS = xhs.西红柿();
        string LB = XHS + "凉拌" + JD;//把JD和XHS凉拌
        return LB;

    }
}

public class 鸡蛋类
{
    public string 鸡蛋()
    {
        return "鸡蛋";
    }
}
    public class 西红柿类
    {
        public string 西红柿()
        {
            return "西红柿";//返回值
        }


    }

}
